package cn.caplike.demo.repository.design.pattern.proxy.cglib.sample;

public class Producer {
    // 可以被代理
    public Producer eat() {
        System.out.println("this engineer is eating");
        return this;
    }

    // final 方法不会被生成的子类覆盖
    public final Producer work() {
        System.out.println("this engineer is working");
        return this;
    }

    // protected 方法不会被生成的子类覆盖
    protected void play() {
        System.out.println("this engineer is playing game");
    }
}
